# EXTENSIONS FOR PR1 Jan. 2012
# ============================
# Michael Böhm 19.01.12

module Test
  module Unit
    module Assertions
      class AssertionMessage
        class << self
          def ensure_diffable_string(string)
            string = string.dup.force_encoding("ASCII-8BIT") if string.respond_to?(:encoding) and 
              string.encoding.respond_to?(:ascii_compatible?) and
              !string.encoding.ascii_compatible?
            string
          end
        end
      end
    end
  end  
end


require "ext_checks_v1"
require "ext_elems_v2"
require "ext_modules_v2"
require "ext_lists_v2"

# INSTALLING THE EXTENSIONS
# =========================
# create a new project with name 'ext_pr1'
# copy the extension files to the source files of this project (drag and drop)

# USING THE THE EXTENSIONS
# ========================

# insert the following lines
# $LOAD_PATH.unshift File.join(File.dirname(__FILE__),'../..','ext_pr1/lib')
# require 'ext_pr1_v3'

